package com.sl.mes.db.dao;

import com.sl.mes.db.vo.MesPermission;
import com.sl.mes.db.vo.MesPermissionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MesPermissionMapper {
    long countByExample(MesPermissionExample example);

    int deleteByExample(MesPermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MesPermission record);

    int insertSelective(MesPermission record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesPermission selectOneByExample(MesPermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesPermission selectOneByExampleSelective(@Param("example") MesPermissionExample example, @Param("selective") MesPermission.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    List<MesPermission> selectByExampleSelective(@Param("example") MesPermissionExample example, @Param("selective") MesPermission.Column ... selective);

    List<MesPermission> selectByExample(MesPermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesPermission selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") MesPermission.Column ... selective);

    MesPermission selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesPermission selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") MesPermission record, @Param("example") MesPermissionExample example);

    int updateByExample(@Param("record") MesPermission record, @Param("example") MesPermissionExample example);

    int updateByPrimaryKeySelective(MesPermission record);

    int updateByPrimaryKey(MesPermission record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByExample(@Param("example") MesPermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_permission
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByPrimaryKey(Integer id);
}